Create a new Node.
Get the byte range of source code that this node represents.
Get the node's child at the given index, where zero represents the first child.
Get the first child with the given field name.
Get the first child with the given field name.
Get this node's number of children
Iterate over this node children.
Iterate over this node children with a given field id.
Iterate over this node children with a given field name.
Get the smallest node within this node that spans the given range.
Get the smallest node within this node that spans the given range.
Edit this node to keep it in-sync with source code that has been edited.
Get the byte offsets where this node end.
Get this node's end position in terms of rows and columns.
Check if this node has been edited
Check if this node represents a syntax error or contains any syntax errors anywhere within it.
Check if the node has a next sibling. Note: next_sibling method already does this check
Check if the node has a immediate parent Note: parent method already does this check
Check if the node has a previous sibling. Note: prev_sibling method already does this check
Hash a node. This returns a unique string for this node.
Get a numeric id for this node that is unique.
Check if the Node is a null node.
Check if this node represents a syntax error.
Check if this node is *extra*.
Check if this node is *missing*.
Check if this node is *named*.
Get this node's type as a string.
Get this node's type as a numerical id.
Get the Language that was used to parse this node's syntax tree.
Get this node's *named* child at the given index.
Get this node's number of *named* children.
Iterate over this node named children.
Get the smallest named node within this node that spans the given range.
Get the smallest named node within this node that spans the given range.
Get this node next named sibling.
Get this node next sibling.
Find the nth parent of node. It goes up until it hits a null parent or max_nth.
Get this node immediate parent.
Get this node previous named sibling.
Get this node previous sibling.
Get the range of source code that this node represents, both in terms of raw bytes and of row/column coordinates.
Get the byte offsets where this node starts
Get this node's start position in terms of rows and columns.
Convert Node to string
Traverse this Node and all its descendants in a top-down left to right manner while applying the visitor at each Node.
Traverse this Node and all its descendants in a top-down left to right manner while applying the visitor at each Node.
Convert Node to utf16 string
Convert Node to utf8 string
Create a new TreeCursor starting from this node.
Creates a new Node from the given nullable TSNode
The internal TSNode
A single Node within a syntax Tree.